import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 党费记录管理-分页查询
export function queryDfjlGlPageList(params){
    return axios({
        url: assessCheckApi.queryDfjlGlPageList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
    })
}
// 党费记录管理-添加-修改
export function saveDfjl(data){
    return axios({
        url: assessCheckApi.saveDfjl,
        method:'post' ,
        data:data,
        url_1:'outside',
    })
}
// 党费管理-删除
export function deleteDfjl(params){
    return axios({
        url: assessCheckApi.deleteDfjl,
        method:'delete' ,
        params:{...params},
        url_1:'outside',
    })
}
// 退回待缴费
export function returnPayment(params){
    return axios({
        url: assessCheckApi.returnPayment,
        method:'delete' ,
        params:{...params},
        url_1:'outside',
    })
}
// 确认缴费
export function confirmPayment(data){
    return axios({
        url: assessCheckApi.confirmPayment,
        method:'post' ,
        data:data,
        url_1:'outside',
    })
}
// 导出年度党费记录表-Excel
export function exportYearDfDataExcel(params){
    return axios({
      url: assessCheckApi.exportYearDfDataExcel,
      method:'get' ,
      params:{...params},
      url_1:'outside',
      responseType: 'arraybuffer'
    })
  }
